package com.woniu.service.imp;/*
 *
 * @author   米雷
 * @Description
 * @Date:create in 15:03 2020-03-27
 *
 * */

import com.woniu.dao.HotlistMapper;
import com.woniu.dto.HostListAndCollect;
import com.woniu.dto.HotlistAndDetail;
import com.woniu.pojo.Hotlist;
import com.woniu.service.HotlistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotlistServiceImp implements HotlistService {
    @Autowired
    HotlistMapper hotlistMapper;

    @Override
    public List<HotlistAndDetail> getHaveJoin(Long id)
    {
        return hotlistMapper.getByUserID(id);
    }

    @Override
    public List<HotlistAndDetail> getnoJoin(Long id)
    {
        return hotlistMapper.getnoById(id);
    }

    @Override
    public List<HotlistAndDetail> getOnJoin(Long id)
    {
        return hotlistMapper.getOnJoin(id);
    }

    @Override
    public HostListAndCollect getCollectHotlist(Long id)
    {
        return hotlistMapper.getCollectHotlist(id);
    }


}
